php forum
php mysql forum
php mysql smarty
 
Page 1 of 8 1 2 3 4 5 6 7 8 >
Topic Options
#151155 - 04/13/02 07:48 AM [6.3.x] [beta] Chat Mod 1.2
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
My first mod, ported to 6.3 laugh

Here we go:

Name: Chat Mod

Description: Lets you chat with jIRC. It has full CP support, it's 100% wordletized, it automatically gets the nick of the user/GuestXXXXX (5 random digits) if it's a guest, replaces smilies with real smilies, shows how many people are currently chatting and even invites people to the chatroom (by Recent Visitors, thanks to Olson).

Demo: http://www.lkworld.com

Link: ZIP File or MultiHack File

Requirements: UBB™ 6.3.0 Beta Release 1.0 , Mod Wordlets , jPilot License (unless you want to see an "unregistered" line after every line)

Number of downloads: [img]http://www.ubbdev.com/lk/num.php?s=chat.zip,chat.mhp[/img]

Special thanks to: Ryan Olson for Invitation Script, Brett (raiyan) for JavaScript idea, dj_rava for the Admin Command Buttons idea and Troy for MultiHack, hosting and supporting me all the way smile .

Screenshots: Forum Summary , Chat Window , CP
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#151156 - 04/13/02 07:13 PM Re: [6.3.x] [beta] Chat Mod 1.2
Variables Offline
Member

Registered: 12/03/00
Posts: 350
Great work LK, installed and working!
But the invite is not working, it gives errors.
I checked the readme again but all was put in the right place.

It has something to do with templatenumber(s) ???
_________________________
"I have not failed. I've just found 10,000 ways that won't work."
- Edison -

www.cyberty.nl

Top
#151157 - 04/14/02 06:10 AM Re: [6.3.x] [beta] Chat Mod 1.2
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Fixed smile
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#151158 - 04/14/02 03:05 PM Re: [6.3.x] [beta] Chat Mod 1.2
SirGrendel Offline
Member

Registered: 05/23/01
Posts: 159
Can't find this in my ultimatebb.cgi:

Find:
=====

} elsif ($in{ubb} =~ m/^(pntf|pntf_js|pntf_admin|preview_post)$/) {
$templatefile = $template_match{summary_page};

Top
#151159 - 04/14/02 03:10 PM Re: [6.3.x] [beta] Chat Mod 1.2
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Ignore that part, I forgot to upload the ZIP without it
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#151160 - 04/14/02 03:34 PM Re: [6.3.x] [beta] Chat Mod 1.2
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
ZIP/MHK files updated - I forgot about a Wordlet - "FieldNameSignoff" - please add it smile

Modified files: ubb_chat and vars_wordlets_mods
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#151161 - 04/14/02 03:46 PM Re: [6.3.x] [beta] Chat Mod 1.2
SirGrendel Offline
Member

Registered: 05/23/01
Posts: 159
Error:

LoadStyleTemplate no longer takes a number.

(Backtrace: : ubb_lib.cgi:1830 -> sub main::Tracer)

(Backtrace: : ubb_chat.cgi:15 -> sub main::LoadStyleTemplate)

(Backtrace: : ultimatebb.cgi:526 -> sub main::chat)

Top
#151162 - 04/14/02 03:53 PM Re: [6.3.x] [beta] Chat Mod 1.2
SirGrendel Offline
Member

Registered: 05/23/01
Posts: 159
Call me an idiot. I forgot to upload the 3 cgi-and-pl-files in chat.zip :rolleyes:

Top
#151163 - 04/14/02 03:58 PM Re: [6.3.x] [beta] Chat Mod 1.2
SirGrendel Offline
Member

Registered: 05/23/01
Posts: 159
Just one question: in this new version, the chat reloads continuesly - isn't that to much serverload?

Top
#151164 - 04/14/02 05:34 PM Re: [6.3.x] [beta] Chat Mod 1.2
Telekinesis Offline
Member

Registered: 06/02/01
Posts: 285
Loc: Florida
The page or the applet?

Top
#151165 - 04/15/02 02:59 AM Re: [6.3.x] [beta] Chat Mod 1.2
SirGrendel Offline
Member

Registered: 05/23/01
Posts: 159
*ahem*
Forget that too. I wasn't at 100% yesterday. Had to run the config in CP once... It loads cont., if you don't give any time for how often the userlist refreshes :rolleyes:

Just ignore all my text in here wink

Top
#151166 - 04/20/02 11:34 AM Re: [6.3.x] [beta] Chat Mod 1.2
Eliza Offline
Member

Registered: 01/28/01
Posts: 45
Loc: Manassas, Virginia
Where it says to look for this...

</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"> sub OpenFileAsVar {
push (@openedfiles, $_[0]);
local (*FILE);
local ($str);

if (-e "$_[0]") {
my $handle = $filehandle->open('file', 'readonly', $_[0]);
$str = $handle->readfile();
$filehandle->close($handle);
} else {
&CheckCachedFile($_[0]);
}
chomp($str); </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">It is actually:

</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"> push (@openedfiles, $_[0]);
local (*FILE);
local ($str);

if (&FileExists($_[0])) {
my $handle = $filehandle->open('file', 'readonly', $_[0]);
$str = $handle->readfile();
$filehandle->close($handle);
} else {
&CheckCachedFile($_[0]);
}
chomp($str); </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">The part that is different:

In your code you have

</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"> if (-e "$_[0]") { </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">In the ubb 6.3X file it is:

</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"> if (&FileExists($_[0])) { </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">At least it was that way for me.
_________________________

Top
#151167 - 04/20/02 11:38 AM Re: [6.3.x] [beta] Chat Mod 1.2
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Yup, sorry, thanks smile
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#151168 - 04/20/02 11:43 AM Re: [6.3.x] [beta] Chat Mod 1.2
Eliza Offline
Member

Registered: 01/28/01
Posts: 45
Loc: Manassas, Virginia
Your welcome!!!

I'm glad I could put my 1 cent in and help out a little.

laugh
_________________________

Top
#151169 - 04/24/02 08:22 AM Re: [6.3.x] [beta] Chat Mod 1.2
Ron M Offline
Admin Emeritus

Registered: 11/29/01
Posts: 789
Loc: Des Moines, IA
LK, I haven't looked at the code in a while. Is it possible to shorten the random digits for guests to like 3 or 4? I know a place where they would never get over 999 Guests using Guest### (actually the chatserver would probably crash)
_________________________
http://thegeeksinc.com
[img]http://www.ubbdev.com/ud/?u=Sub_Zero&s=1[/img] points generated

Top
#151170 - 04/24/02 10:05 AM Re: [6.3.x] [beta] Chat Mod 1.2
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
5 digits == world standard.

But:

$nick = "Guest$digit[rand(10)]$digit[rand(10)]$digit[rand(10)]$digit[rand(10)]$digit[rand(10)]";

Delete the last two $digit[]
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#151171 - 04/27/02 10:16 AM Re: [6.3.x] [beta] Chat Mod 1.2
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Fixed a problem: most admin commandbuttons didn't work. Please upload the new ubb_chat.cgi smile
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#151172 - 04/29/02 10:55 AM Re: [6.3.x] [beta] Chat Mod 1.2
Logam Offline
Member

Registered: 09/13/01
Posts: 32
I have a probelm, i see the little logo chat and no the text for connect to the chat :
My URL

Top
#151173 - 04/29/02 10:57 AM Re: [6.3.x] [beta] Chat Mod 1.2
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Reinstall Mod Wordlets - www.qasic.net and rehack vars_wordlets_mods.cgi part of chat mod.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#151174 - 04/30/02 12:21 PM Re: [6.3.x] [beta] Chat Mod 1.2
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
ZIP/MHK files updated - added HTML feature to CP.

Please re-upload cp_vars_chat.pl, ubb_chat.cgi and rehack cp_lib.cgi.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
Page 1 of 8 1 2 3 4 5 6 7 8 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks